﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApp
{
    public class Sys_Log
    {
        public int Id { get; set; }
        public string UserCode { get; set; }
        public string OpType { get; set; }
        public bool? Result { get; set; }
        public string IpAdress { get; set; }
        public string IpAdressName { get; set; }
        public string Message { get; set; }
        public string Origin { get; set; }
        public string LogLevel { get; set; }
        public string Stacktrace { get; set; }
        public string Json { get; set; }
        public DateTime Crdate { get; set; }
        public string UserId { get; set; }
        public string ConnectionString { get; set; }
        public string UrlAdress { get; set; }
        public Sys_Log()
        {

        }
        public Sys_Log(string loglevel, string message, string optype, string urladress, string usercode,string json,bool result)
        {
            LogLevel = loglevel;
            Message = message;
            OpType = optype;
            UrlAdress = urladress;
            UserCode = usercode;
            Json = json;
            Result = result;
        }
    }
}